require "fileutils.rb"

bad=true
ans=""

  puts "This program will clear all logs. Are you sure you wish to continue? (Y/N)"

while bad
  ans = gets.chomp!

  if ans=="Y" or ans=="y"
    bad=false
  elsif ans=="N" or ans=="n"
    exit
  else
    puts "Bad command.\n\n"
  end
end


FileUtils.rm_f Dir.glob("*.txt*")
FileUtils.rm_f Dir.glob("REPORT")
FileUtils.rm_f Dir.glob("*.dat")